package com.xiguaji.tiktok.v1.ins.media.model;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;

/**
 * 帖子
 * @author Huangxin
 */
@Table(value = "ins_media")
@Data
public class InsMedia  implements Serializable {
    @Id
    @Column(value="id")
    private Long id;

    /**
     * 博主id
     */
    @Column(value = "owner_uid")
    private Long ownerUid;

    /**
     * 帖子编码
     */
    private String shortcode;

    /**
     * 封面地址
     */
    @Column(value = "display_url")
    private String displayUrl;

    /**
     * 是否赞助帖
     */
    @Column(value = "is_sponsored")
    private Boolean isSponsored;

    /**
     * 是否视频
     */
    @Column(value = "is_video")
    private Boolean isVideo;

    /**
     * 视频地址
     */
    @Column(value = "video_url")
    private String videoUrl;

    /**
     * 视频观看数
     */
    @Column(value = "video_view_count")
    private Long videoViewCount;


    /**
     * 评论数
     */
    @Column(value = "comment_count")
    private Integer commentCount;

    /**
     * 点赞数
     */
    @Column(value = "like_count")
    private Long likeCount;

    /**
     * 帖子发表时间戳
     */
    @Column(value = "taken_time")
    private Long takenTime;

    /**
     * 参与率
     */
    private Double er;

    private Double score;

    /**
     * 标题
     */
    private String caption;
    private Long locationId;
    private String locationName;
    private String typename;
}